#-*- coding: utf-8 -*-

from cocos.sprite import Sprite
from pyglet.gl import *

class CSprite(Sprite):

	def __init__(self,*args,**kwargs):
		Sprite.__init__(self,*args,**kwargs)
		self.scalex=1.0
		self.scaley=1.0

	def draw(self):
		glPushMatrix()
		glTranslatef( self.m_x, self.m_y, 0 )
		glScalef( self.scalex, self.scaley, 1)
		Sprite.draw(self)
		glPopMatrix()